package com.yssystem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.lang.reflect.Type;
import java.time.LocalDateTime;

@Data
@TableName("sys_role")
public class Role {
    @TableId(value = "id", type = IdType.AUTO)
    //角色id
    private Long id;
    //角色名称
    @TableField("role_name")
    private String roleName;
    //角色编码
    @TableField("role_code")
    private String roleCode;
    //描述
    private String description;
    //创建时间
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    //更新时间
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
    //删除标记（0:不可用 1:可用）
    @TableField("is_deleted")
    private Integer isDeleted;
}
